package com.atguigu.gmall.user.clinet;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.user.UserAddress;
import com.atguigu.gmall.user.clinet.impl.UserFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@FeignClient(value = "service-user",fallback = UserFeignClientImpl.class)
public interface UserFeignClient {

    @GetMapping("/api/user/auth/get/user/address/list")
    public Result<List<UserAddress>> getUserAddressList();
}
